package com.sk.exception;

import com.sk.enums.ResponseCode;

/**
 * @Author jiaok
 * @Date 2024-03-25 14:24
 */
public class WechatLoginException extends RuntimeException {

    public WechatLoginException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public WechatLoginException(ResponseCode responseCode) {
        this(responseCode.getCode(), ResponseCode.getEnumMessage(responseCode));
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    private String code;

    private String message;
}
